<include file='Public:header'/>
<include file='Public:menu'/>
  <div id="main-content">
  
    <h2>编辑商品</h2>
    <p id="page-intro">有什么可以帮助您？</p>
    <!-- End .shortcut-buttons-set -->
    <div class="clear"></div>
    <!-- End .clear -->
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>编辑商品</h3>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        
        <!-- End #tab1 -->
        <div class="tab-content default-tab" id="tab2">
          <form action="__URL__/editAction/id/{$data.id}" method="post" enctype="multipart/form-data">
            <fieldset>
            <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
            <p>
              <label>商品名</label>
              <input class="text-input small-input" type="text" id="small-input" name="title" value="{$data.title}" />
              <br />
            </p>
            <p>
              <label>单价</label>
              <input class="text-input small-input" type="text" id="small-input" name="price" value="{$data.price}" />
              <br />
            </p>
            <p>
              <label>商品摘要</label>
              <input class="text-input medium-input datepicker" type="text" id="medium-input" name="paper" value="{$data.paper}" />
              <br />
            </p>
            <p>
              <label>收藏次数</label>
              <input class="text-input small-input" type="text" id="small-input" name="collection" value="{$data.collection}" />
              <br />
              <small>只能用数字</small>
            </p>
            <p>
              <label>购买地址</label>
              <input class="text-input large-input" type="text" id="large-input" name="buy_url" value="{$data.buy_url}"/>
              <br />
            </p>
            <p>
              <label>商品列表图片</label>
              <img src="__ROOT__/Uploads/{$data.img}" style="width: 150px; height: 150px;"/>
              <br />
              <input type="file"  name="photo">
              <br />
            </p>
            <p>
              <label>商品介绍</label>
              <textarea class="text-input textarea" id="textarea" name="content" cols="79" rows="15">{$data.content}</textarea>
              <br />
            </p>
            <p>
              <input class="button" type="submit" value="提交" />
            </p>
            </fieldset>
            <div class="clear"></div>
            <!-- End .clear -->
          </form>
        </div>
        <!-- End #tab2 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <div class="clear"></div>
    
<include file='Public:footer'/>